home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / info / texinfo.info-2 < prev    next >
Encoding:
GNU Info File  |  1995-09-01  |  49.3 KB  |  1,275 lines

  1. This is Info file ../info/texinfo.info, produced by Makeinfo-1.63 from
  2. the input file texinfo.texi.
  3.  
  4.   This file documents Texinfo, a documentation system that uses a single
  5. source file to produce both on-line information and a printed manual.
  6.  
  7.   Copyright (C) 1988, 1990, 1991, 1992, 1993, 1995 Free Software
  8. Foundation, Inc.
  9.  
  10.   This is the second edition of the Texinfo documentation,
  11. and is consistent with version 2 of `texinfo.tex'.
  12.  
  13.   Permission is granted to make and distribute verbatim copies of this
  14. manual provided the copyright notice and this permission notice are
  15. preserved on all copies.
  16.  
  17.   Permission is granted to copy and distribute modified versions of this
  18. manual under the conditions for verbatim copying, provided that the
  19. entire resulting derived work is distributed under the terms of a
  20. permission notice identical to this one.
  21.  
  22.   Permission is granted to copy and distribute translations of this
  23. manual into another language, under the above conditions for modified
  24. versions, except that this permission notice may be stated in a
  25. translation approved by the Free Software Foundation.
  26.  
  27. 
  28. File: texinfo.info,  Node: Acknowledgements,  Prev: Short Sample,  Up: Overview
  29.  
  30. Acknowledgements
  31. ================
  32.  
  33.   Richard M. Stallman wrote Edition 1.0 of this manual.
  34. Robert J. Chassell revised and extended it, starting with Edition 1.1.
  35.  
  36.   Our thanks go out to all who helped improve this work, particularly to
  37. Francois Pinard and David D. Zuhn, who tirelessly recorded and reported
  38. mistakes and obscurities; our special thanks go to Melissa Weisshaus
  39. for her frequent and often tedious reviews of nearly similar editions.
  40. Our mistakes are our own.
  41.  
  42. 
  43. File: texinfo.info,  Node: Texinfo Mode,  Next: Beginning a File,  Prev: Overview,  Up: Top
  44.  
  45. Using Texinfo Mode
  46. ******************
  47.  
  48.   You may edit a Texinfo file with any text editor you choose.  A
  49. Texinfo file is no different from any other ASCII file.  However, GNU
  50. Emacs comes with a special mode, called Texinfo mode, that provides
  51. Emacs commands and tools to help ease your work.
  52.  
  53.   This chapter describes features of GNU Emacs' Texinfo mode but not any
  54. features of the Texinfo formatting language.  If you are reading this
  55. manual straight through from the beginning, you may want to skim through
  56. this chapter briefly and come back to it after reading succeeding
  57. chapters which describe the Texinfo formatting language in detail.
  58.  
  59. * Menu:
  60.  
  61. * Texinfo Mode Overview::       How Texinfo mode can help you.
  62. * Emacs Editing::               Texinfo mode adds to GNU Emacs' general
  63.                                   purpose editing features.
  64. * Inserting::                   How to insert frequently used @-commands.
  65. * Showing the Structure::       How to show the structure of a file.
  66. * Updating Nodes and Menus::    How to update or create new nodes and menus.
  67. * Info Formatting::             How to format for Info.
  68. * Printing::                    How to format and print part or all of a file.
  69. * Texinfo Mode Summary::        Summary of all the Texinfo mode commands.
  70.  
  71. 
  72. File: texinfo.info,  Node: Texinfo Mode Overview,  Next: Emacs Editing,  Prev: Texinfo Mode,  Up: Texinfo Mode
  73.  
  74. Texinfo Mode Overview
  75. =====================
  76.  
  77.   Texinfo mode provides special features for working with Texinfo files:
  78.  
  79.    * Insert frequently used @-commands.
  80.  
  81.    * Automatically create `@node' lines.
  82.  
  83.    * Show the structure of a Texinfo source file.
  84.  
  85.    * Automatically create or update the `Next',
  86.      `Previous', and `Up' pointers of a node.
  87.  
  88.    * Automatically create or update menus.
  89.  
  90.    * Automatically create a master menu.
  91.  
  92.    * Format a part or all of a file for Info.
  93.  
  94.    * Typeset and print part or all of a file.
  95.  
  96.   Perhaps the two most helpful features are those for inserting
  97. frequently used @-commands and for creating node pointers and menus.
  98.  
  99. 
  100. File: texinfo.info,  Node: Emacs Editing,  Next: Inserting,  Prev: Texinfo Mode Overview,  Up: Texinfo Mode
  101.  
  102. The Usual GNU Emacs Editing Commands
  103. ====================================
  104.  
  105.   In most cases, the usual Text mode commands work the same in Texinfo
  106. mode as they do in Text mode.  Texinfo mode adds new editing commands
  107. and tools to GNU Emacs' general purpose editing features.  The major
  108. difference concerns filling.  In Texinfo mode, the paragraph separation
  109. variable and syntax table are redefined so that Texinfo commands that
  110. should be on lines of their own are not inadvertently included in
  111. paragraphs.  Thus, the `M-q' (`fill-paragraph') command will refill a
  112. paragraph but not mix an indexing command on a line adjacent to it into
  113. the paragraph.
  114.  
  115.   In addition, Texinfo mode sets the `page-delimiter' variable to the
  116. value of `texinfo-chapter-level-regexp'; by default, this is a regular
  117. expression matching the commands for chapters and their equivalents,
  118. such as appendices.  With this value for the page delimiter, you can
  119. jump from chapter title to chapter title with the `C-x ]'
  120. (`forward-page') and `C-x [' (`backward-page') commands and narrow to a
  121. chapter with the `C-x p' (`narrow-to-page') command.  (*Note Pages:
  122. (emacs)Pages, for details about the page commands.)
  123.  
  124.   You may name a Texinfo file however you wish, but the convention is to
  125. end a Texinfo file name with one of the three extensions `.texinfo',
  126. `.texi', or `.tex'.  A longer extension is preferred, since it is
  127. explicit, but a shorter extension may be necessary for operating
  128. systems that limit the length of file names.  GNU Emacs automatically
  129. enters Texinfo mode when you visit a file with a `.texinfo' or  `.texi'
  130. extension.  Also, Emacs switches to Texinfo mode when you visit a file
  131. that has `-*-texinfo-*-' in its first line.  If ever you are in another
  132. mode and wish to switch to Texinfo mode, type `M-x texinfo-mode'.
  133.  
  134.   Like all other Emacs features, you can customize or enhance Texinfo
  135. mode as you wish.  In particular, the keybindings are very easy to
  136. change.  The keybindings described here are the default or standard
  137. ones.
  138.  
  139. 
  140. File: texinfo.info,  Node: Inserting,  Next: Showing the Structure,  Prev: Emacs Editing,  Up: Texinfo Mode
  141.  
  142. Inserting Frequently Used Commands
  143. ==================================
  144.  
  145.   Texinfo mode provides commands to insert various frequently used
  146. @-commands into the buffer.  You can use these commands to save
  147. keystrokes.
  148.  
  149.   The insert commands are invoked by typing `C-c' twice and then the
  150. first letter of the @-command:
  151.  
  152. `C-c C-c c'
  153. `M-x texinfo-insert-@code'
  154.      Insert `@code{}' and put the cursor between the braces.
  155.  
  156. `C-c C-c d'
  157. `M-x texinfo-insert-@dfn'
  158.      Insert `@dfn{}' and put the cursor between the braces.
  159.  
  160. `C-c C-c e'
  161. `M-x texinfo-insert-@end'
  162.      Insert `@end' and attempt to insert the correct following word,
  163.      such as `example' or `table'.  (This command does not handle
  164.      nested lists correctly, but inserts the word appropriate to the
  165.      immediately preceding list.)
  166.  
  167. `C-c C-c i'
  168. `M-x texinfo-insert-@item'
  169.      Insert `@item' and put the cursor at the beginning of the next
  170.      line.
  171.  
  172. `C-c C-c k'
  173. `M-x texinfo-insert-@kbd'
  174.      Insert `@kbd{}' and put the cursor between the braces.
  175.  
  176. `C-c C-c n'
  177. `M-x texinfo-insert-@node'
  178.      Insert `@node' and a comment line listing the sequence for the
  179.      `Next', `Previous', and `Up' nodes.  Leave point after the `@node'.
  180.  
  181. `C-c C-c o'
  182. `M-x texinfo-insert-@noindent'
  183.      Insert `@noindent' and put the cursor at the beginning of the next
  184.      line.
  185.  
  186. `C-c C-c s'
  187. `M-x texinfo-insert-@samp'
  188.      Insert `@samp{}' and put the cursor between the braces.
  189.  
  190. `C-c C-c t'
  191. `M-x texinfo-insert-@table'
  192.      Insert `@table' followed by a SPC and leave the cursor after the
  193.      SPC.
  194.  
  195. `C-c C-c v'
  196. `M-x texinfo-insert-@var'
  197.      Insert `@var{}' and put the cursor between the braces.
  198.  
  199. `C-c C-c x'
  200. `M-x texinfo-insert-@example'
  201.      Insert `@example' and put the cursor at the beginning of the next
  202.      line.
  203.  
  204. `C-c C-c {'
  205. `M-x texinfo-insert-braces'
  206.      Insert `{}' and put the cursor between the braces.
  207.  
  208. `C-c C-c }'
  209. `C-c C-c ]'
  210. `M-x up-list'
  211.      Move from between a pair of braces forward past the closing brace.
  212.      Typing `C-c C-c ]' is easier than typing `C-c C-c }', which is,
  213.      however, more mnemonic; hence the two keybindings.  (Also, you can
  214.      move out from between braces by typing `C-f'.)
  215.  
  216.   To put a command such as `@code{...}' around an *existing* word,
  217. position the cursor in front of the word and type `C-u 1 C-c C-c c'.
  218. This makes it easy to edit existing plain text.  The value of the
  219. prefix argument tells Emacs how many words following point to include
  220. between braces--1 for one word, 2 for two words, and so on.  Use a
  221. negative argument to enclose the previous word or words.  If you do not
  222. specify a prefix argument, Emacs inserts the @-command string and
  223. positions the cursor between the braces.  This feature works only for
  224. those @-commands that operate on a word or words within one line, such
  225. as `@kbd' and `@var'.
  226.  
  227.   This set of insert commands was created after analyzing the frequency
  228. with which different @-commands are used in the `GNU Emacs Manual' and
  229. the `GDB Manual'.  If you wish to add your own insert commands, you can
  230. bind a keyboard macro to a key, use abbreviations, or extend the code
  231. in `texinfo.el'.
  232.  
  233.   `C-c C-c C-d' (`texinfo-start-menu-description') is an insert command
  234. that works differently from the other insert commands.  It inserts a
  235. node's section or chapter title in the space for the description in a
  236. menu entry line.  (A menu entry has three parts, the entry name, the
  237. node name, and the description.  Only the node name is required, but a
  238. description helps explain what the node is about.  *Note The Parts of a
  239. Menu: Menu Parts.)
  240.  
  241.   To use `texinfo-start-menu-description', position point in a menu
  242. entry line and type `C-c C-c C-d'.  The command looks for and copies
  243. the title that goes with the node name, and inserts the title as a
  244. description; it positions point at beginning of the inserted text so you
  245. can edit it.  The function does not insert the title if the menu entry
  246. line already contains a description.
  247.  
  248.   This command is only an aid to writing descriptions; it does not do
  249. the whole job.  You must edit the inserted text since a title tends to
  250. use the same words as a node name but a useful description uses
  251. different words.
  252.  
  253. 
  254. File: texinfo.info,  Node: Showing the Structure,  Next: Updating Nodes and Menus,  Prev: Inserting,  Up: Texinfo Mode
  255.  
  256. Showing the Section Structure of a File
  257. =======================================
  258.  
  259.   You can show the section structure of a Texinfo file by using the
  260. `C-c C-s' command (`texinfo-show-structure').  This command shows the
  261. section structure of a Texinfo file by listing the lines that begin
  262. with the @-commands for `@chapter', `@section', and the like.  It
  263. constructs what amounts to a table of contents.  These lines are
  264. displayed in another buffer called the `*Occur*' buffer.  In that
  265. buffer, you can position the cursor over one of the lines and use the
  266. `C-c C-c' command (`occur-mode-goto-occurrence'), to jump to the
  267. corresponding spot in the Texinfo file.
  268.  
  269. `C-c C-s'
  270. `M-x texinfo-show-structure'
  271.      Show the `@chapter', `@section', and such lines of a Texinfo file.
  272.  
  273. `C-c C-c'
  274. `M-x occur-mode-goto-occurrence'
  275.      Go to the line in the Texinfo file corresponding to the line under
  276.      the cursor in the `*Occur*' buffer.
  277.  
  278.   If you call `texinfo-show-structure' with a prefix argument by typing
  279. `C-u C-c C-s', it will list not only those lines with the @-commands
  280. for `@chapter', `@section', and the like, but also the `@node' lines.
  281. (This is how the `texinfo-show-structure' command worked without an
  282. argument in the first version of Texinfo.  It was changed because
  283. `@node' lines clutter up the `*Occur*' buffer and are usually not
  284. needed.)  You can use `texinfo-show-structure' with a prefix argument
  285. to check whether the `Next', `Previous', and `Up' pointers of an
  286. `@node' line are correct.
  287.  
  288.   Often, when you are working on a manual, you will be interested only
  289. in the structure of the current chapter.  In this case, you can mark
  290. off the region of the buffer that you are interested in by using the
  291. `C-x n n' (`narrow-to-region') command and `texinfo-show-structure'
  292. will work on only that region.  To see the whole buffer again, use
  293. `C-x n w' (`widen').  (*Note Narrowing: (emacs)Narrowing, for more
  294. information about the narrowing commands.)
  295.  
  296.   In addition to providing the `texinfo-show-structure' command,
  297. Texinfo mode sets the value of the page delimiter variable to match the
  298. chapter-level @-commands.  This enables you to use the `C-x ]'
  299. (`forward-page') and `C-x [' (`backward-page') commands to move forward
  300. and backward by chapter, and to use the `C-x p' (`narrow-to-page')
  301. command to narrow to a chapter.  *Note Pages: (emacs)Pages, for more
  302. information about the page commands.
  303.  
  304. 
  305. File: texinfo.info,  Node: Updating Nodes and Menus,  Next: Info Formatting,  Prev: Showing the Structure,  Up: Texinfo Mode
  306.  
  307. Updating Nodes and Menus
  308. ========================
  309.  
  310.   Texinfo mode provides commands for automatically creating or updating
  311. menus and node pointers.  The commands are called "update" commands
  312. because their most frequent use is for updating a Texinfo file after
  313. you have worked on it; but you can use them to insert the `Next',
  314. `Previous', and `Up' pointers into an `@node' line that has none and to
  315. create menus in a file that has none.
  316.  
  317.   If you do not use the updating commands, you need to write menus and
  318. node pointers by hand, which is a tedious task.
  319.  
  320. * Menu:
  321.  
  322. * Updating Commands::           Five major updating commands.
  323. * Updating Requirements::       How to structure a Texinfo file for
  324.                                   using the updating command.
  325. * Other Updating Commands::     How to indent descriptions, insert
  326.                                   missing nodes lines, and update
  327.                                   nodes in sequence.
  328.  
  329. 
  330. File: texinfo.info,  Node: Updating Commands,  Next: Updating Requirements,  Prev: Updating Nodes and Menus,  Up: Updating Nodes and Menus
  331.  
  332. The Updating Commands
  333. ---------------------
  334.  
  335.   You can use the updating commands
  336.  
  337.    * to insert or update the `Next', `Previous', and `Up' pointers of a
  338.      node,
  339.  
  340.    * to insert or update the menu for a section, and
  341.  
  342.    * to create a master menu for a Texinfo source file.
  343.  
  344.   You can also use the commands to update all the nodes and menus in a
  345. region or in a whole Texinfo file.
  346.  
  347.   The updating commands work only with conventional Texinfo files, which
  348. are structured hierarchically like books.  In such files, a structuring
  349. command line must follow closely after each `@node' line, except for
  350. the `Top' `@node' line.  (A "structuring command line" is a line
  351. beginning with `@chapter', `@section', or other similar command.)
  352.  
  353.   You can write the structuring command line on the line that follows
  354. immediately after an `@node' line or else on the line that follows
  355. after a single `@comment' line or a single `@ifinfo' line.  You cannot
  356. interpose more than one line between the `@node' line and the
  357. structuring command line; and you may interpose only an `@comment' line
  358. or an `@ifinfo' line.
  359.  
  360.   Commands which work on a whole buffer require that the `Top' node be
  361. followed by a node with an `@chapter' or equivalent-level command.
  362. Note that the menu updating commands will not create a main or master
  363. menu for a Texinfo file that has only `@chapter'-level nodes!  The menu
  364. updating commands only create menus *within* nodes for lower level
  365. nodes.  To create a menu of chapters, you must provide a `Top' node.
  366.  
  367.   The menu updating commands remove menu entries that refer to other
  368. Info files since they do not refer to nodes within the current buffer.
  369. This is a deficiency.  Rather than use menu entries, you can use cross
  370. references to refer to other Info files.  None of the updating commands
  371. affect cross references.
  372.  
  373.   Texinfo mode has five updating commands that are used most often: two
  374. are for updating the node pointers or menu of a single node (or a
  375. region); two are for updating every node pointer and menu in a file;
  376. and one, the `texinfo-master-menu' command, is for creating a master
  377. menu for a complete file, and optionally, for updating every node and
  378. menu in the whole Texinfo file.
  379.  
  380.   The `texinfo-master-menu' command is the primary command:
  381.  
  382. `C-c C-u m'
  383. `M-x texinfo-master-menu'
  384.      Create or update a master menu that includes all the other menus
  385.      (incorporating the descriptions from pre-existing menus, if any).
  386.  
  387.      With an argument (prefix argument, `C-u,' if interactive), first
  388.      create or update all the nodes and all the regular menus in the
  389.      buffer before constructing the master menu.  (*Note The Top Node
  390.      and Master Menu: The Top Node, for more about a master menu.)
  391.  
  392.      For `texinfo-master-menu' to work, the Texinfo file must have a
  393.      `Top' node and at least one subsequent node.
  394.  
  395.      After extensively editing a Texinfo file, you can type the
  396.      following:
  397.  
  398.           C-u M-x texinfo-master-menu
  399.      or
  400.           C-u C-c C-u m
  401.  
  402.      This updates all the nodes and menus completely and all at once.
  403.  
  404.   The other major updating commands do smaller jobs and are designed for
  405. the person  who updates nodes and menus as he or she writes a Texinfo
  406. file.
  407.  
  408.   The commands are:
  409.  
  410. `C-c C-u C-n'
  411. `M-x texinfo-update-node'
  412.      Insert the `Next', `Previous', and `Up' pointers for the node that
  413.      point is within (i.e., for the `@node' line preceding point).  If
  414.      the `@node' line has pre-existing `Next', `Previous', or `Up'
  415.      pointers in it, the old pointers are removed and new ones inserted.
  416.      With an argument (prefix argument, `C-u', if interactive), this
  417.      command updates all `@node' lines in the region (which is the text
  418.      between point and mark).
  419.  
  420. `C-c C-u C-m'
  421. `M-x texinfo-make-menu'
  422.      Create or update the menu in the node that point is within.  With
  423.      an argument (`C-u' as prefix argument, if interactive), the
  424.      command makes or updates menus for the nodes which are either
  425.      within or a part of the region.
  426.  
  427.      Whenever `texinfo-make-menu' updates an existing menu, the
  428.      descriptions from that menu are incorporated into the new menu.
  429.      This is done by copying descriptions from the existing menu to the
  430.      entries in the new menu that have the same node names.  If the
  431.      node names are different, the descriptions are not copied to the
  432.      new menu.
  433.  
  434. `C-c C-u C-e'
  435. `M-x texinfo-every-node-update'
  436.      Insert or update the `Next', `Previous', and `Up' pointers for
  437.      every node in the buffer.
  438.  
  439. `C-c C-u C-a'
  440. `M-x texinfo-all-menus-update'
  441.      Create or update all the menus in the buffer.  With an argument
  442.      (`C-u' as prefix argument, if interactive), first insert or update
  443.      all the node pointers before working on the menus.
  444.  
  445.      If a master menu exists, the `texinfo-all-menus-update' command
  446.      updates it; but the command does not create a new master menu if
  447.      none already exists.  (Use the `texinfo-master-menu' command for
  448.      that.)
  449.  
  450.      When working on a document that does not merit a master menu, you
  451.      can type the following:
  452.  
  453.           C-u C-c C-u C-a
  454.      or
  455.           C-u M-x texinfo-all-menus-update
  456.  
  457.      This updates all the nodes and menus.
  458.  
  459.   The `texinfo-column-for-description' variable specifies the column to
  460. which menu descriptions are indented.  By default, the value is 32
  461. although it is often useful to reduce it to as low as 24.  You can set
  462. the variable with the `M-x edit-options' command (*note Editing
  463. Variable Values: (emacs)Edit Options.) or with the `M-x set-variable'
  464. command (*note Examining and Setting Variables: (emacs)Examining.).
  465.  
  466.   Also, the `texinfo-indent-menu-description' command may be used to
  467. indent existing menu descriptions to a specified column.  Finally, if
  468. you wish, you can use the `texinfo-insert-node-lines' command to insert
  469. missing `@node' lines into a file.  (*Note Other Updating Commands::,
  470. for more information.)
  471.  
  472. 
  473. File: texinfo.info,  Node: Updating Requirements,  Next: Other Updating Commands,  Prev: Updating Commands,  Up: Updating Nodes and Menus
  474.  
  475. Updating Requirements
  476. ---------------------
  477.  
  478.   To use the updating commands, you must organize the Texinfo file
  479. hierarchically with chapters, sections, subsections, and the like.
  480. When you construct the hierarchy of the manual, do not `jump down' more
  481. than one level at a time: you can follow the `Top' node with a chapter,
  482. but not with a section; you can follow a chapter with a section, but
  483. not with a subsection.  However, you may `jump up' any number of levels
  484. at one time--for example, from a subsection to a chapter.
  485.  
  486.   Each `@node' line, with the exception of the line for the `Top' node,
  487. must be followed by a line with a structuring command such as
  488. `@chapter', `@section', or `@unnumberedsubsec'.
  489.  
  490.   Each `@node' line/structuring-command line combination must look
  491. either like this:
  492.  
  493.      @node     Comments,  Minimum, Conventions, Overview
  494.      @comment  node-name, next,    previous,    up
  495.      @section Comments
  496.  
  497.   or like this (without the `@comment' line):
  498.  
  499.      @node Comments, Minimum, Conventions, Overview
  500.      @section Comments
  501.  
  502. In this example, `Comments' is the name of both the node and the
  503. section.  The next node is called `Minimum' and the previous node is
  504. called `Conventions'.  The `Comments' section is within the `Overview'
  505. node, which is specified by the `Up' pointer.  (Instead of an
  506. `@comment' line, you can write an `@ifinfo' line.)
  507.  
  508.   If a file has a `Top' node, it must be called `top' or `Top' and be
  509. the first node in the file.
  510.  
  511.   The menu updating commands create a menu of sections within a chapter,
  512. a menu of subsections within a section, and so on.  This means that you
  513. must have a `Top' node if you want a menu of chapters.
  514.  
  515.   Incidentally, the `makeinfo' command will create an Info file for a
  516. hierarchically organized Texinfo file that lacks `Next', `Previous' and
  517. `Up' pointers.  Thus, if you can be sure that your Texinfo file will be
  518. formatted with `makeinfo', you have no need for the `update node'
  519. commands.  (*Note Creating an Info File: Create an Info File, for more
  520. information about `makeinfo'.)  However, both `makeinfo' and the
  521. `texinfo-format-...' commands require that you insert menus in the file.
  522.  
  523. 
  524. File: texinfo.info,  Node: Other Updating Commands,  Prev: Updating Requirements,  Up: Updating Nodes and Menus
  525.  
  526. Other Updating Commands
  527. -----------------------
  528.  
  529.   In addition to the five major updating commands, Texinfo mode
  530. possesses several less frequently used updating commands:
  531.  
  532. `M-x texinfo-insert-node-lines'
  533.      Insert `@node' lines before the `@chapter', `@section', and other
  534.      sectioning commands wherever they are missing throughout a region
  535.      in a Texinfo file.
  536.  
  537.      With an argument (`C-u' as prefix argument, if interactive), the
  538.      `texinfo-insert-node-lines' command not only inserts `@node' lines
  539.      but also inserts the chapter or section titles as the names of the
  540.      corresponding nodes.  In addition, it inserts the titles as node
  541.      names in pre-existing `@node' lines that lack names.  Since node
  542.      names should be more concise than section or chapter titles, you
  543.      must manually edit node names so inserted.
  544.  
  545.      For example, the following marks a whole buffer as a region and
  546.      inserts `@node' lines and titles throughout:
  547.  
  548.           C-x h C-u M-x texinfo-insert-node-lines
  549.  
  550.      (Note that this command inserts titles as node names in `@node'
  551.      lines; the `texinfo-start-menu-description' command (*note
  552.      Inserting Frequently Used Commands: Inserting.) inserts titles as
  553.      descriptions in menu entries, a different action.  However, in both
  554.      cases, you need to edit the inserted text.)
  555.  
  556. `M-x texinfo-multiple-files-update'
  557.      Update nodes and menus in a document built from several separate
  558.      files.  With `C-u' as a prefix argument, create and insert a
  559.      master menu in the outer file.  With a numeric prefix argument,
  560.      such as `C-u 2', first update all the menus and all the `Next',
  561.      `Previous', and `Up' pointers of all the included files before
  562.      creating and inserting a master menu in the outer file.  The
  563.      `texinfo-multiple-files-update' command is described in the
  564.      appendix on `@include' files.  *Note
  565.      texinfo-multiple-files-update::.
  566.  
  567. `M-x texinfo-indent-menu-description'
  568.      Indent every description in the menu following point to the
  569.      specified column.  You can use this command to give yourself more
  570.      space for descriptions.  With an argument (`C-u' as prefix
  571.      argument, if interactive), the `texinfo-indent-menu-description'
  572.      command indents every description in every menu in the region.
  573.      However, this command does not indent the second and subsequent
  574.      lines of a multi-line description.
  575.  
  576. `M-x texinfo-sequential-node-update'
  577.      Insert the names of the nodes immediately following and preceding
  578.      the current node as the `Next' or `Previous' pointers regardless
  579.      of those nodes' hierarchical level.  This means that the `Next'
  580.      node of a subsection may well be the next chapter.  Sequentially
  581.      ordered nodes are useful for novels and other documents that you
  582.      read through sequentially.  (However, in Info, the `g* RET'
  583.      command lets you look through the file sequentially, so
  584.      sequentially ordered nodes are not strictly necessary.)  With an
  585.      argument (prefix argument, if interactive), the
  586.      `texinfo-sequential-node-update' command sequentially updates all
  587.      the nodes in the region.
  588.  
  589. 
  590. File: texinfo.info,  Node: Info Formatting,  Next: Printing,  Prev: Updating Nodes and Menus,  Up: Texinfo Mode
  591.  
  592. Formatting for Info
  593. ===================
  594.  
  595.   Texinfo mode provides several commands for formatting part or all of a
  596. Texinfo file for Info.  Often, when you are writing a document, you
  597. want to format only part of a file--that is, a region.
  598.  
  599.   You can use either the `texinfo-format-region' or the
  600. `makeinfo-region' command to format a region:
  601.  
  602. `C-c C-e C-r'
  603. `M-x texinfo-format-region'
  604. `C-c C-m C-r'
  605. `M-x makeinfo-region'
  606.      Format the current region for Info.
  607.  
  608.   You can use either the `texinfo-format-buffer' or the
  609. `makeinfo-buffer' command to format a whole buffer:
  610.  
  611. `C-c C-e C-b'
  612. `M-x texinfo-format-buffer'
  613. `C-c C-m C-b'
  614. `M-x makeinfo-buffer'
  615.      Format the current buffer for Info.
  616.  
  617.   For example, after writing a Texinfo file, you can type the following:
  618.  
  619.      C-u C-c C-u m
  620. or
  621.      C-u M-x texinfo-master-menu
  622.  
  623. This updates all the nodes and menus.  Then type the following to create
  624. an Info file:
  625.  
  626.      C-c C-m C-b
  627. or
  628.      M-x makeinfo-buffer
  629.  
  630.   For the Info formatting commands to work, the file *must* include a
  631. line that has `@setfilename' in its header.
  632.  
  633.   Not all systems support the `makeinfo'-based formatting commands.
  634.  
  635.   *Note Create an Info File::, for details about Info formatting.
  636.  
  637. 
  638. File: texinfo.info,  Node: Printing,  Next: Texinfo Mode Summary,  Prev: Info Formatting,  Up: Texinfo Mode
  639.  
  640. Formatting and Printing
  641. =======================
  642.  
  643.   Typesetting and printing a Texinfo file is a multi-step process in
  644. which you first create a file for printing (called a DVI file), and then
  645. print the file.  Optionally, you may also create indices.  To do this,
  646. you must run the `texindex' command after first running the `tex'
  647. typesetting command; and then you must run the `tex' command again.  Or
  648. else run the `texi2dvi' command which automatically creates indices as
  649. needed.
  650.  
  651.   Often, when you are writing a document, you want to typeset and print
  652. only part of a file to see what it will look like.  You can use the
  653. `texinfo-tex-region' and related commands for this purpose.  Use the
  654. `texinfo-tex-buffer' command to format all of a buffer.
  655.  
  656. `C-c C-t C-b'
  657. `M-x texinfo-tex-buffer'
  658.      Run `texi2dvi' on the buffer.  In addition to running TeX on the
  659.      buffer, this command automatically creates or updates indices as
  660.      needed.
  661.  
  662. `C-c C-t C-r'
  663. `M-x texinfo-tex-region'
  664.      Run TeX on the region.
  665.  
  666. `C-c C-t C-i'
  667. `M-x texinfo-texindex'
  668.      Run `texindex' to sort the indices of a Texinfo file formatted with
  669.      `texinfo-tex-region'.  The `texinfo-tex-region' command does not
  670.      run `texindex' automatically; it only runs the `tex' typesetting
  671.      command.  You must run the `texinfo-tex-region' command a second
  672.      time after sorting the raw index files with the `texindex'
  673.      command.  (Usually, you do not format an index when you format a
  674.      region, only when you format a buffer.  Now that the `texi2dvi'
  675.      command exists, there is no little need for this command.)
  676.  
  677. `C-c C-t C-p'
  678. `M-x texinfo-tex-print'
  679.      Print the file (or the part of the file) previously formatted with
  680.      `texinfo-tex-buffer' or `texinfo-tex-region'.
  681.  
  682.   For `texinfo-tex-region' or `texinfo-tex-buffer' to work, the file
  683. *must* start with a `\input texinfo' line and must include an
  684. `@settitle' line.  The file must end with `@bye' on a line by itself.
  685. (When you use `texinfo-tex-region', you must surround the `@settitle'
  686. line with start-of-header and end-of-header lines.)
  687.  
  688.   *Note Format/Print Hardcopy::, for a description of the other TeX
  689. related commands, such as `tex-show-print-queue'.
  690.  
  691. 
  692. File: texinfo.info,  Node: Texinfo Mode Summary,  Prev: Printing,  Up: Texinfo Mode
  693.  
  694. Texinfo Mode Summary
  695. ====================
  696.  
  697.   In Texinfo mode, each set of commands has default keybindings that
  698. begin with the same keys.  All the commands that are custom-created for
  699. Texinfo mode begin with `C-c'.  The keys are somewhat mnemonic.
  700.  
  701. Insert Commands
  702. ---------------
  703.  
  704.   The insert commands are invoked by typing `C-c' twice and then the
  705. first letter of the @-command to be inserted.  (It might make more
  706. sense mnemonically to use `C-c C-i', for `custom insert', but `C-c C-c'
  707. is quick to type.)
  708.  
  709.      C-c C-c c       Insert `@code'.
  710.      C-c C-c d       Insert `@dfn'.
  711.      C-c C-c e       Insert `@end'.
  712.      C-c C-c i       Insert `@item'.
  713.      C-c C-c n       Insert `@node'.
  714.      C-c C-c s       Insert `@samp'.
  715.      C-c C-c v       Insert `@var'.
  716.      C-c C-c {       Insert braces.
  717.      C-c C-c ]
  718.      C-c C-c }       Move out of enclosing braces.
  719.      
  720.      C-c C-c C-d     Insert a node's section title
  721.                      in the space for the description
  722.                      in a menu entry line.
  723.  
  724. Show Structure
  725. --------------
  726.  
  727.   The `texinfo-show-structure' command is often used within a narrowed
  728. region.
  729.  
  730.      C-c C-s         List all the headings.
  731.  
  732. The Master Update Command
  733. -------------------------
  734.  
  735.   The `texinfo-master-menu' command creates a master menu; and can be
  736. used to update every node and menu in a file as well.
  737.  
  738.      C-c C-u m
  739.      M-x texinfo-master-menu
  740.                      Create or update a master menu.
  741.      
  742.      C-u C-c C-u m   With `C-u' as a prefix argument, first
  743.                      create or update all nodes and regular
  744.                      menus, and then create a master menu.
  745.  
  746. Update Pointers
  747. ---------------
  748.  
  749.   The update pointer commands are invoked by typing `C-c C-u' and then
  750. either `C-n' for `texinfo-update-node' or `C-e' for
  751. `texinfo-every-node-update'.
  752.  
  753.      C-c C-u C-n     Update a node.
  754.      C-c C-u C-e     Update every node in the buffer.
  755.  
  756. Update Menus
  757. ------------
  758.  
  759.   Invoke the  update menu commands by typing `C-c C-u' and then either
  760. `C-m' for `texinfo-make-menu' or `C-a' for `texinfo-all-menus-update'.
  761. To update both nodes and menus at the same time, precede `C-c C-u C-a'
  762. with `C-u'.
  763.  
  764.      C-c C-u C-m     Make or update a menu.
  765.      
  766.      C-c C-u C-a     Make or update all
  767.                      menus in a buffer.
  768.      
  769.      C-u C-c C-u C-a With `C-u' as a prefix argument,
  770.                      first create or update all nodes and
  771.                      then create or update all menus.
  772.  
  773. Format for Info
  774. ---------------
  775.  
  776.   The Info formatting commands that are written in Emacs Lisp are
  777. invoked by typing `C-c C-e' and then either `C-r' for a region or `C-b'
  778. for the whole buffer.
  779.  
  780.   The Info formatting commands that are written in C and based on the
  781. `makeinfo' program are invoked by typing `C-c C-m' and then either
  782. `C-r' for a region or `C-b' for the whole buffer.
  783.  
  784. Use the `texinfo-format...' commands:
  785.  
  786.      C-c C-e C-r     Format the region.
  787.      C-c C-e C-b     Format the buffer.
  788.  
  789. Use `makeinfo':
  790.  
  791.      C-c C-m C-r     Format the region.
  792.      C-c C-m C-b     Format the buffer.
  793.      C-c C-m C-l     Recenter the `makeinfo' output buffer.
  794.      C-c C-m C-k     Kill the `makeinfo' formatting job.
  795.  
  796. Typeset and Print
  797. -----------------
  798.  
  799.   The TeX typesetting and printing commands are invoked by typing `C-c
  800. C-t' and then another control command: `C-r' for `texinfo-tex-region',
  801. `C-b' for `texinfo-tex-buffer', and so on.
  802.  
  803.      C-c C-t C-r     Run TeX on the region.
  804.      C-c C-t C-b     Run `texi2dvi' on the buffer.
  805.      C-c C-t C-i     Run `texindex'.
  806.      C-c C-t C-p     Print the DVI file.
  807.      C-c C-t C-q     Show the print queue.
  808.      C-c C-t C-d     Delete a job from the print queue.
  809.      C-c C-t C-k     Kill the current TeX formatting job.
  810.      C-c C-t C-x     Quit a currently stopped TeX formatting job.
  811.      C-c C-t C-l     Recenter the output buffer.
  812.  
  813. Other Updating Commands
  814. -----------------------
  815.  
  816.   The `other updating commands' do not have standard keybindings because
  817. they are rarely used.
  818.  
  819.      M-x texinfo-insert-node-lines
  820.                      Insert missing `@node' lines in region.
  821.                      With `C-u' as a prefix argument,
  822.                      use section titles as node names.
  823.      
  824.      M-x texinfo-multiple-files-update
  825.                      Update a multi-file document.
  826.                      With `C-u 2' as a prefix argument,
  827.                      create or update all nodes and menus
  828.                      in all included files first.
  829.      
  830.      M-x texinfo-indent-menu-description
  831.                      Indent descriptions.
  832.      
  833.      M-x texinfo-sequential-node-update
  834.                      Insert node pointers in strict sequence.
  835.  
  836. 
  837. File: texinfo.info,  Node: Beginning a File,  Next: Ending a File,  Prev: Texinfo Mode,  Up: Top
  838.  
  839. Beginning a Texinfo File
  840. ************************
  841.  
  842.   Certain pieces of information must be provided at the beginning of a
  843. Texinfo file, such as the name of the file and the title of the
  844. document.
  845.  
  846. * Menu:
  847.  
  848. * Four Parts::                  Four parts begin a Texinfo file.
  849. * Sample Beginning::            Here is a sample beginning for a Texinfo file.
  850. * Header::                      The very beginning of a Texinfo file.
  851. * Info Summary and Permissions::  Summary and copying permissions for Info.
  852. * Titlepage & Copyright Page::  Creating the title and copyright pages.
  853. * The Top Node::                Creating the `Top' node and master menu.
  854. * Software Copying Permissions::  Ensure that you and others continue to
  855.                                   have the right to use and share software.
  856.  
  857. 
  858. File: texinfo.info,  Node: Four Parts,  Next: Sample Beginning,  Prev: Beginning a File,  Up: Beginning a File
  859.  
  860. Four Parts Begin a File
  861. =======================
  862.  
  863.   Generally, the beginning of a Texinfo file has four parts:
  864.  
  865.   1. The header, delimited by special comment lines, that includes the
  866.      commands for naming the Texinfo file and telling TeX what
  867.      definitions' file to use when processing the Texinfo file.
  868.  
  869.   2. A short statement of what the file is about, with a copyright
  870.      notice and copying permissions.  This is enclosed in `@ifinfo' and
  871.      `@end ifinfo' commands so that the formatters place it only in the
  872.      Info file.
  873.  
  874.   3. A title page and copyright page, with a copyright notice and
  875.      copying permissions.  This is enclosed between `@titlepage' and
  876.      `@end titlepage' commands.  The title and copyright page appear
  877.      only in the printed manual.
  878.  
  879.   4. The `Top' node that contains a menu for the whole Info file.  The
  880.      contents of this node appear only in the Info file.
  881.  
  882.   Also, optionally, you may include the copying conditions for a program
  883. and a warranty disclaimer.  The copying section will be followed by an
  884. introduction or else by the first chapter of the manual.
  885.  
  886.   Since the copyright notice and copying permissions for the Texinfo
  887. document (in contrast to the copying permissions for a program) are in
  888. parts that appear only in the Info file or only in the printed manual,
  889. this information must be given twice.
  890.  
  891. 
  892. File: texinfo.info,  Node: Sample Beginning,  Next: Header,  Prev: Four Parts,  Up: Beginning a File
  893.  
  894. Sample Texinfo File Beginning
  895. =============================
  896.  
  897.   The following sample shows what is needed.
  898.  
  899.      \input texinfo   @c -*-texinfo-*-
  900.      @c %**start of header
  901.      @setfilename NAME-OF-INFO-FILE
  902.      @settitle NAME-OF-MANUAL
  903.      @setchapternewpage odd
  904.      @c %**end of header
  905.      
  906.      @ifinfo
  907.      This file documents ...
  908.      
  909.      Copyright YEAR COPYRIGHT-OWNER
  910.      
  911.      Permission is granted to ...
  912.      @end ifinfo
  913.      
  914.      @c  This title page illustrates only one of the
  915.      @c  two methods of forming a title page.
  916.      
  917.      @titlepage
  918.      @title NAME-OF-MANUAL-WHEN-PRINTED
  919.      @subtitle SUBTITLE-IF-ANY
  920.      @subtitle SECOND-SUBTITLE
  921.      @author AUTHOR
  922.      
  923.      @c  The following two commands
  924.      @c  start the copyright page.
  925.      @page
  926.      @vskip 0pt plus 1filll
  927.      Copyright @copyright{} YEAR COPYRIGHT-OWNER
  928.      
  929.      Published by ...
  930.      
  931.      Permission is granted to ...
  932.      @end titlepage
  933.      
  934.      @node Top, Overview, (dir), (dir)
  935.      
  936.      @ifinfo
  937.      This document describes ...
  938.      
  939.      This document applies to version ...
  940.      of the program named ...
  941.      @end ifinfo
  942.      
  943.      @menu
  944.      * Copying::          Your rights and freedoms.
  945.      * First Chapter::    Getting started ...
  946.      * Second Chapter::              ...
  947.        ...
  948.        ...
  949.      @end menu
  950.      
  951.      @node    First Chapter, Second Chapter, top,      top
  952.      @comment node-name,     next,           previous, up
  953.      @chapter First Chapter
  954.      @cindex Index entry for First Chapter
  955.  
  956. 
  957. File: texinfo.info,  Node: Header,  Next: Info Summary and Permissions,  Prev: Sample Beginning,  Up: Beginning a File
  958.  
  959. The Texinfo File Header
  960. =======================
  961.  
  962.   Texinfo files start with at least three lines that provide Info and
  963. TeX with necessary information.  These are the `\input texinfo' line,
  964. the `@settitle' line, and the `@setfilename' line.  If you want to run
  965. TeX on just a part of the Texinfo File, you must write the `@settitle'
  966. and `@setfilename' lines between start-of-header and end-of-header
  967. lines.
  968.  
  969.   Thus, the beginning of a Texinfo file looks like this:
  970.  
  971.      \input texinfo   @c -*-texinfo-*-
  972.      @setfilename sample.info
  973.      @settitle Sample Document
  974.  
  975. or else like this:
  976.  
  977.      \input texinfo   @c -*-texinfo-*-
  978.      @c %**start of header
  979.      @setfilename sample.info
  980.      @settitle Sample Document
  981.      @c %**end of header
  982.  
  983. * Menu:
  984.  
  985. * First Line::                  The first line of a Texinfo file.
  986. * Start of Header::             Formatting a region requires this.
  987. * setfilename::                 Tell Info the name of the Info file.
  988. * settitle::                    Create a title for the printed work.
  989. * setchapternewpage::           Start chapters on right-hand pages.
  990. * paragraphindent::             An option to specify paragraph indentation.
  991. * End of Header::               Formatting a region requires this.
  992.  
  993. 
  994. File: texinfo.info,  Node: First Line,  Next: Start of Header,  Prev: Header,  Up: Header
  995.  
  996. The First Line of a Texinfo File
  997. --------------------------------
  998.  
  999.   Every Texinfo file that is to be the top-level input to TeX must begin
  1000. with a line that looks like this:
  1001.  
  1002.      \input texinfo   @c -*-texinfo-*-
  1003.  
  1004. This line serves two functions:
  1005.  
  1006.   1. When the file is processed by TeX, the `\input texinfo' command
  1007.      tells TeX to load the macros needed for processing a Texinfo file.
  1008.      These are in a file called `texinfo.tex', which is usually located
  1009.      in the `/usr/lib/tex/macros' directory.  TeX uses the backslash,
  1010.      `\', to mark the beginning of a command, just as Texinfo uses `@'.
  1011.      The `texinfo.tex' file causes the switch from `\' to `@'; before
  1012.      the switch occurs, TeX requires `\', which is why it appears at
  1013.      the beginning of the file.
  1014.  
  1015.   2. When the file is edited in GNU Emacs, the `-*-texinfo-*-' mode
  1016.      specification tells Emacs to use Texinfo mode.
  1017.  
  1018. 
  1019. File: texinfo.info,  Node: Start of Header,  Next: setfilename,  Prev: First Line,  Up: Header
  1020.  
  1021. Start of Header
  1022. ---------------
  1023.  
  1024.   Write a start-of-header line on the second line of a Texinfo file.
  1025. Follow the start-of-header line with `@setfilename' and `@settitle'
  1026. lines and, optionally, with other command lines, such as `@smallbook'
  1027. or `@footnotestyle'; and then by an end-of-header line (*note End of
  1028. Header::.).
  1029.  
  1030.   With these lines, you can format part of a Texinfo file for Info or
  1031. typeset part for printing.
  1032.  
  1033.   A start-of-header line looks like this:
  1034.  
  1035.      @c %**start of header
  1036.  
  1037.   The odd string of characters, `%**', is to ensure that no other
  1038. comment is accidentally taken for a start-of-header line.
  1039.  
  1040. 
  1041. File: texinfo.info,  Node: setfilename,  Next: settitle,  Prev: Start of Header,  Up: Header
  1042.  
  1043. `@setfilename'
  1044. --------------
  1045.  
  1046.   In order to be made into an Info file, a Texinfo file must contain a
  1047. line that looks like this:
  1048.  
  1049.      @setfilename INFO-FILE-NAME
  1050.  
  1051.   Write the `@setfilename' command at the beginning of a line and
  1052. follow it on the same line by the Info file name.  Do not write
  1053. anything else on the line; anything on the line after the command is
  1054. considered part of the file name, including a comment.
  1055.  
  1056.   The `@setfilename' line specifies the name of the Info file to be
  1057. generated.  This name should be different from the name of the Texinfo
  1058. file.  The convention is to write a name with a `.info' extension, to
  1059. produce an Info file name such as `texinfo.info'.
  1060.  
  1061.   Some operating systems cannot handle long file names.  You can run
  1062. into a problem even when the file name you specify is itself short
  1063. enough.  This occurs because the Info formatters split a long Info file
  1064. into short indirect subfiles, and name them by appending `-1', `-2',
  1065. ..., `-10', `-11', and so on, to the original file name.  (*Note Tag
  1066. Files and Split Files: Tag and Split Files.)  The subfile name
  1067. `texinfo.info-10', for example, is too long for some systems; so the
  1068. Info file name for this document is actually `texinfo' rather than
  1069. `texinfo.info'.
  1070.  
  1071.   The Info formatting commands ignore everything written before the
  1072. `@setfilename' line, which is why the very first line of the file (the
  1073. `\input' line) does not need to be commented out.  The `@setfilename'
  1074. line is ignored when you typeset a printed manual.
  1075.  
  1076. 
  1077. File: texinfo.info,  Node: settitle,  Next: setchapternewpage,  Prev: setfilename,  Up: Header
  1078.  
  1079. `@settitle'
  1080. -----------
  1081.  
  1082.   In order to be made into a printed manual, a Texinfo file must contain
  1083. a line that looks like this:
  1084.  
  1085.      @settitle TITLE
  1086.  
  1087.   Write the `@settitle' command at the beginning of a line and follow
  1088. it on the same line by the title.  This tells TeX the title to use in a
  1089. header or footer.  Do not write anything else on the line; anything on
  1090. the line after the command is considered part of the title, including a
  1091. comment.
  1092.  
  1093.   Conventionally, when TeX formats a Texinfo file for double-sided
  1094. output, the title is printed in the left-hand (even-numbered) page
  1095. headings and the current chapter title is printed in the right-hand
  1096. (odd-numbered) page headings.  (TeX learns the title of each chapter
  1097. from each `@chapter' command.)  Page footers are not printed.
  1098.  
  1099.   Even if you are printing in a single-sided style, TeX looks for an
  1100. `@settitle' command line, in case you include the manual title in the
  1101. heading.
  1102.  
  1103.   The `@settitle' command should precede everything that generates
  1104. actual output in TeX.
  1105.  
  1106.   Although the title in the `@settitle' command is usually the same as
  1107. the title on the title page, it does not affect the title as it appears
  1108. on the title page.  Thus, the two do not need not match exactly;  and
  1109. the title in the `@settitle' command can be a shortened or expanded
  1110. version of the title as it appears on the title page. (*Note
  1111. `@titlepage': titlepage.)
  1112.  
  1113.   TeX prints page headings only for that text that comes after the
  1114. `@end titlepage' command in the Texinfo file, or that comes after an
  1115. `@headings' command that turns on headings.  (*Note The `@headings'
  1116. Command: headings on off, for more information.)
  1117.  
  1118.   You may, if you wish, create your own, customized headings and
  1119. footings.  *Note Page Headings: Headings, for a detailed discussion of
  1120. this process.
  1121.  
  1122. 
  1123. File: texinfo.info,  Node: setchapternewpage,  Next: paragraphindent,  Prev: settitle,  Up: Header
  1124.  
  1125. `@setchapternewpage'
  1126. --------------------
  1127.  
  1128.   In a book or a manual, text is usually printed on both sides of the
  1129. paper, chapters start on right-hand pages, and right-hand pages have
  1130. odd numbers.  But in short reports, text often is printed only on one
  1131. side of the paper.  Also in short reports, chapters sometimes do not
  1132. start on new pages, but are printed on the same page as the end of the
  1133. preceding chapter, after a small amount of vertical whitespace.
  1134.  
  1135.   You can use the `@setchapternewpage' command with various arguments
  1136. to specify how TeX should start chapters and whether it should typeset
  1137. pages for printing on one or both sides of the paper (single-sided or
  1138. double-sided printing).
  1139.  
  1140.   Write the `@setchapternewpage' command at the beginning of a line
  1141. followed by its argument.
  1142.  
  1143.   For example, you would write the following to cause each chapter to
  1144. start on a fresh odd-numbered page:
  1145.  
  1146.      @setchapternewpage odd
  1147.  
  1148.   You can specify one of three alternatives with the
  1149. `@setchapternewpage' command:
  1150.  
  1151. `@setchapternewpage off'
  1152.      Cause TeX to typeset a new chapter on the same page as the last
  1153.      chapter, after skipping some vertical whitespace.  Also, cause TeX
  1154.      to format page headers for single-sided printing. (You can
  1155.      override the headers format with the `@headings double' command;
  1156.      see *Note The `@headings' Command: headings on off.)
  1157.  
  1158. `@setchapternewpage on'
  1159.      Cause TeX to start new chapters on new pages and to typeset page
  1160.      headers for single-sided printing.  This is the form most often
  1161.      used for short reports.
  1162.  
  1163.      This alternative is the default.
  1164.  
  1165. `@setchapternewpage odd'
  1166.      Cause TeX to start new chapters on new, odd-numbered pages
  1167.      (right-handed pages) and to typeset for double-sided printing.
  1168.      This is the form most often used for books and manuals.
  1169.  
  1170. Texinfo does not have an `@setchapternewpage even' command.
  1171.  
  1172. (You can countermand or modify an `@setchapternewpage' command with an
  1173. `@headings' command.  *Note The `@headings' Command: headings on off.)
  1174.  
  1175.   At the beginning of a manual or book, pages are not numbered--for
  1176. example, the title and copyright pages of a book are not numbered.  By
  1177. convention, table of contents pages are numbered with roman numerals
  1178. and not in sequence with the rest of the document.
  1179.  
  1180.   Since an Info file does not have pages, the `@setchapternewpage'
  1181. command has no effect on it.
  1182.  
  1183.   Usually, you do not write an `@setchapternewpage' command for
  1184. single-sided printing, but accept the default which is to typeset for
  1185. single-sided printing and to start new chapters on new pages.  Usually,
  1186. you write an `@setchapternewpage odd' command for double-sided printing.
  1187.  
  1188. 
  1189. File: texinfo.info,  Node: paragraphindent,  Next: End of Header,  Prev: setchapternewpage,  Up: Header
  1190.  
  1191. Paragraph Indenting
  1192. -------------------
  1193.  
  1194.   The Info formatting commands may insert spaces at the beginning of the
  1195. first line of each paragraph, thereby indenting that paragraph.  You
  1196. can use the `@paragraphindent' command to specify the indentation.
  1197. Write an `@paragraphindent' command at the beginning of a line followed
  1198. by either `asis' or a number.  The template is:
  1199.  
  1200.      @paragraphindent INDENT
  1201.  
  1202.   The Info formatting commands indent according to the value of INDENT:
  1203.  
  1204.    * If the value of INDENT is `asis', the Info formatting commands do
  1205.      not change the existing indentation.
  1206.  
  1207.    * If the value of INDENT is 0, the Info formatting commands delete
  1208.      existing indentation.
  1209.  
  1210.    * If the value of INDENT is greater than 0, the Info formatting
  1211.      commands indent the paragraph by that number of spaces.
  1212.  
  1213.   The default value of INDENT is `asis'.
  1214.  
  1215.   Write the `@paragraphindent' command before or shortly after the
  1216. end-of-header line at the beginning of a Texinfo file.  (If you write
  1217. the command between the start-of-header and end-of-header lines, the
  1218. region formatting commands indent paragraphs as specified.)
  1219.  
  1220.   A peculiarity of the `texinfo-format-buffer' and
  1221. `texinfo-format-region' commands is that they do not indent (nor fill)
  1222. paragraphs that contain `@w' or `@*' commands.  *Note Refilling
  1223. Paragraphs::, for a detailed description of what goes on.
  1224.  
  1225. 
  1226. File: texinfo.info,  Node: End of Header,  Prev: paragraphindent,  Up: Header
  1227.  
  1228. End of Header
  1229. -------------
  1230.  
  1231.   Follow the header lines with an end-of-header line.  An end-of-header
  1232. line looks like this:
  1233.  
  1234.      @c %**end of header
  1235.  
  1236.   If you include the `@setchapternewpage' command between the
  1237. start-of-header and end-of-header lines, TeX will typeset a region as
  1238. that command specifies.  Similarly, if you include an `@smallbook'
  1239. command between the start-of-header and end-of-header lines, TeX will
  1240. typeset a region in the "small" book format.
  1241.  
  1242.   The reason for the odd string of characters (`%**') is so that the
  1243. `texinfo-tex-region' command does not accidentally find something that
  1244. it should not when it is looking for the header.
  1245.  
  1246.   The start-of-header line and the end-of-header line are Texinfo mode
  1247. variables that you can change.
  1248.  
  1249. 
  1250. File: texinfo.info,  Node: Info Summary and Permissions,  Next: Titlepage & Copyright Page,  Prev: Header,  Up: Beginning a File
  1251.  
  1252. Summary and Copying Permissions for Info
  1253. ========================================
  1254.  
  1255.   The title page and the copyright page appear only in the printed copy
  1256. of the manual; therefore, the same information must be inserted in a
  1257. section that appears only in the Info file.  This section usually
  1258. contains a brief description of the contents of the Info file, a
  1259. copyright notice, and copying permissions.
  1260.  
  1261.   The copyright notice should read:
  1262.  
  1263.      Copyright YEAR COPYRIGHT-OWNER
  1264.  
  1265. and be put on a line by itself.
  1266.  
  1267.   Standard text for the copyright permissions is contained in an
  1268. appendix to this manual; see *Note `ifinfo' Copying Permissions: ifinfo
  1269. Permissions, for the complete text.
  1270.  
  1271.   The permissions text appears in an Info file *before* the first node.
  1272. This mean that a reader does *not* see this text when reading the file
  1273. using Info, except when using the advanced Info command `g *'.
  1274.  
  1275.